# _*_ coding: UTF-8 _*_
# 2020/5/4 11:04 
# PyCharm  
# Create by:LIUMINXUAN
# E-mail:liuminxuan1024@gmail.com
import cv2 as cv
import numpy as np


src_jiaoyan = cv.imread("./img/jiaoyan/danghui_jiaoyan.bmp", cv.IMREAD_GRAYSCALE)
src_gaosi = cv.imread("./img/gaosi/danghui_gaosi.bmp", cv.IMREAD_GRAYSCALE)
src_ruili = cv.imread("./img/ruili/danghui_ruili.BMP", cv.IMREAD_GRAYSCALE)
cv.imshow("SRC_jiaoyan", src_jiaoyan)
cv.imshow("SRC_gaosi", src_gaosi)
cv.imshow("SRC_ruili", src_ruili)
MedianFilter_jiaoyan = cv.medianBlur(src_jiaoyan, 7)
MedianFilter_gaosi = cv.medianBlur(src_gaosi, 7)
MedianFilter_ruili = cv.medianBlur(src_ruili, 7)
cv.imshow("MedianFilter_jiaoyan", MedianFilter_jiaoyan)
cv.imshow("MedianFilter_gaosi", MedianFilter_gaosi)
cv.imshow("MedianFilter_ruili", MedianFilter_ruili)
cv.waitKey(0)
cv.destroyAllWindows()
